仅供参考学习
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using FPISystem.API;namespace FPISystem.Test{ public partial class InserSuperUser : FPISystem.BaseForms.Logo { private MinutiaeCollection minutiaes; public InserSuperUser() { InitializeComponent(); } private void bfp_Input_Click(object sender, EventArgs e) { if (bfp_Input.FileName != "") { MinutiaeManager minutiaeManager = new MinutiaeManager(bfp_Input.FileName); minutiaes = minutiaeManager.Extract(); pic_PF.Image = Bitmap.FromFile(bfp_Input.FileName); } } private void btn_OK_Click(object sender, EventArgs e) { if (minutiaes == null) { MessageBox.Show("需要录入指纹!"); return; } if (txt_UserID.Text.Trim() == "") { MessageBox.Show("用户ID不能为空!"); return; } if (SQL.StoredProcedure.InsertSuperUser(txt_UserID.Text.Trim(), minutiaes)) MessageBox.Show("注册成功!"); else MessageBox.Show("注册失败!请更改用户ID重试!"); } }}
评论